//
//  NoneImageTableViewCell.m
//  BuffetNews
//
//  Created by 李荃荃 on 14-11-5.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "NoneImageTableViewCell.h"

@implementation NoneImageTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        
        self.autherLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.autherLabel];
        [_autherLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(10, 0, self.contentView.frame.size.width, self.contentView.frame.size.height / 5 * 2);
    self.titleLabel.numberOfLines = 0;
    self.autherLabel.frame = CGRectMake(10, self.contentView.frame.size.height / 5 * 2, self.contentView.frame.size.width, self.contentView.frame.size.height / 5);
    self.autherLabel.font = [UIFont systemFontOfSize:10];
    self.autherLabel.textColor = [UIColor grayColor];
}
- (void)dealloc
{
    [_titleLabel release];
    [_autherLabel release];
    [super dealloc];
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
